<!doctype html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="utf-8">
<title>人才来了-岗位详情</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="weixin_statics/css/reset.css">
<link rel="stylesheet" href="weixin_statics/css/style.css">
    <script src="weixin_statics/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script language="javascript">
        $(document).ready(function(){

            // $("#send").bind("click",function(){
            //     $(".twlist-tj").show();
            // });

            $(".wei_send .close").bind("click",function(){
                $(".wei_send").hide();
            });
            $(".twlist-tj .close").bind("click",function(){
                $(".twlist-tj").hide();
            });
            });
    </script>
</head>

<body>
	<div class="twlist-tj" style="display:none;">
        <i class="close"><img src="weixin_statics/images/close.png" alt=""></i>
        <div class="twlist-tin">
            <img src="weixin_statics/images/ok.png" alt="">恭喜！<br />投递成功！
        </div>
    </div>
    <div class="wei_send" style="display:none;">
        <i class="close"><img src="weixin_statics/images/close.png" alt=""></i>
        <div class="twlist-tin">
            <img src="weixin_statics/images/ok.png" alt="">你已经投递过该岗位！<br />一周之内不能重复投递！
        </div>
    </div>
	<div class="top-bar">
    	<div class="top-logo"><a href="{:U('Index/index')}"><img src="weixin_statics/images/home.png" alt="">返回首页</a></div>
        <div class="top-prev"><a href="javascript:history.go(-1)"><img src="weixin_statics/images/arrow_left.png" alt="">返回上一页</a></div>
    </div>
    <div class="warp">
    	<h4 class="gwshow-title">{$list.title}</h4>
        <h5 class="gwstitle" style="border:none;"><span><a href="__ROOT__/weixin.php?s=/Companyreview/company_info/cid/{$list.cid}">{$list.cid|format_companyname}</a></span></h5>
        <h5 class="gwstitle"><span><a href="__ROOT__/weixin.php?s=/Companyreview/company_info/cid/{$list.cid}">查看数量：{$list.check} 次</a></span>{$list.updateline|date="Y年m月d日 H:i",###} 更新</h5>
        <div class="gzinfo-txt">
        	学历要求：{$list.edu|format_xueli}<br />
            工作时间：{$list.worktime|format_worktime}<br />
            工作经验：{$list.exper|format_exper}<br />
            年龄要求：{$list.age_start}岁————{$list.age_end}岁<br />
            性别要求：{$list.sex|format_xingbie}<br />
            身高要求：{$list.height|format_height}<br />
            月薪范围：{$list.salary}
        </div>
        <h4 class="gztitle">工作地点</h4>
        <div class="gzinfo-txt">
        	<ul>
                        <volist name="workplace" id="w">
                        <li>
                            <strong>{$w.area}</strong> &nbsp;:
                            <volist name="w.stores" id="s">
                             {$s.store_name}   &nbsp;  &nbsp; &nbsp;  
                            </volist>
                        </li>
                        </volist>
            </ul>
        </div>
        <h4 class="gztitle">面试相关</h4>
        <div class="gzinfo-txt">
        	联系人：{$list.com_info.contact}<br />
            联系电话：{$list.com_info.call}（记得说是在海营之家看到的哦）<br />
            <!-- 面试时间：周一周二周三<br /> -->
            面试地址：{$list.com_info.pro|getareaname}-{$list.com_info.city|getareaname}-{$list.com_info.area|getareaname}&nbsp;&nbsp;&nbsp;
            {$list.com_info.address}
        </div>
        <h4 class="gztitle">职位描述</h4>
        <div class="gzinfo-txt">
        	{$list.intro}
        </div>
        <h4 class="gztitle">福利待遇</h4>
        <div class="gzinfo-txt">
            {$list.welfare}
        </div>
        <notempty name="list.com_pic">
        <h4 class="gztitle">公司相关</h4>
        <ul class="gspic">
            <volist name="list.com_pic" id="po">
                <li><img src='{$po.pic.url}' /></li>
            </volist>
        </ul>
        </notempty>
        <ul class="serch-page">
        <a href="javascript:" class="page-btn prev" id="send" onClick="sendresume({$list.hiring_id})">投递简历</a><a href="javascript:history.go(-1)" class="page-btn next pink">返回上一页</a>
    </ul>
    </div>
</body>
</html>
<script>
function sendresume(val){
        var url1 = "{:U('Resume/resume_01')}";
    var url2 = "__ROOT__/weixin.php?s=/Resume/resume_01/edit/1";
    var url3 = "{:U('Resume/resume_02')}";
        $.post("__URL__/send_resume", { "hiring_id": val},
           function(data){
            if (data.status==1) {
                $(".twlist-tj").show(); 
            }else if(data.status==0){
                $(".wei_send").show();
            }else if(data.status==2){
                alert('您还没有创建简历，请填写您的简历！');
                window.location.href= url1;
            }else if(data.status==3){
                alert('您的信息尚不完整，请修改您的简历！');
                window.location.href= url2;
            }else{
                alert('您的信息尚不完整，请补充您的简历！');
                window.location.href= url13;
            }
           }, "json");
}
</script>
